From c2326523034f519ae13ce93d2dbc3426877cd1b1 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 23 Nov 2013 19:36:50 +0100 Subject: [PATCH] Remove unused local variable Just count if there are array members Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd --- includes/filebackend/FileBackendStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index beca79eebf..2fe51c0a2c 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -1161,7 +1161,7 @@ abstract class FileBackendStore extends FileBackend { * @return array List of corresponding Status objects */ protected function doExecuteOpHandlesInternal( array $fileOpHandles ) { - foreach ( $fileOpHandles as $fileOpHandle ) { // OK if empty + if ( count( $fileOpHandles ) ) { throw new MWException( "This backend supports no asynchronous operations." ); } -- 2.20.1